package com.example.pei.ithinklearnt.model;

import com.example.pei.ithinklearnt.bean.AlumniCircle;

import java.util.List;

/**
 * 动态圈子 model层
 * Created by Pei on 2017/12/15.
 */

public interface AlumniCircleModel {
    //根据动态的objectid，找到这个校园动态
    void findAlumniCircleByObjectId(String objectId, AlumniCircleModelImp.findAlumniCircle listener);
    //根据某一条评论的objectid，查询到它是那个动态的评论
    void findAlumniCircleByCommentId(String objectId, AlumniCircleModelImp.findAlumniCircle listener);
   //删除某个动态，及相关的所有图片和所有评论
    void deleteAlumniCircle(AlumniCircle al, List photoUrls, AlumniCircleModelImp.deleteAlumniCircle listener);
    //用户userName屏蔽某条动态objectId  ,同时本地也会存储屏蔽消息
    void shieldAlumniCircle(String userName, String objectId,AlumniCircleModelImp.shieldAlumniCircle listener);
    //动态objectId增加一个点赞数量
    void addOneLike(String objectId);
    //动态objectId增加一个评论数量、
    void addOneComment(String objectId,AlumniCircleModelImp.addOneComment listener);
    //动态object减少一个评论数量
    void deleteComment(String commentObjectId,AlumniCircleModelImp.deleteOneComment listener);

    //判断这个动态是否被当前用户userName所屏蔽
    boolean isDynamicShielded(String objectId,String userName);
}
